package com.sky.web.fegin.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.sky.web.fegin.service.impl.CustomerFeginServiceCallback;
import com.sky.web.other.entity.Customer;

@FeignClient(value="service-sktest",fallback=CustomerFeginServiceCallback.class)
public interface CustomerFeginService {
	@RequestMapping(value = "/getCustomer",method = RequestMethod.POST)
	public List<Customer> getCustomer(@RequestBody Customer customer);
	
	@RequestMapping(value = "/getString",method = RequestMethod.POST)
	public String getString(@RequestParam("desc") String desc);
	
	@RequestMapping(value = "/getString2",method = RequestMethod.POST)
	public String getString(@RequestParam("str1") String str1,@RequestParam("str2") String str2);
}
